-- GENERATED SPELL FOR [Grunt Ounda] --


function spell0_25081(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25081', 5317, 1)
end

function spell1_25081(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25081', 614, 1)
end

function Sorts_25081(pUnit, Event)
local choix_sorts_25081 = math.random(0, 1)
if choix_sorts_25081 == 0 then
pUnit:RegisterEvent('spell0_25081', 1, 1)
end
if choix_sorts_25081 == 1 then
pUnit:RegisterEvent('spell1_25081', 1, 1)
end
end

function mob25081_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25081', math.random(1500, 3000), 1)
end

function mob25081_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25081_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25081_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25081, 1, 'mob25081_Action')
RegisterUnitEvent(25081, 2, 'mob25081_Leave')
RegisterUnitEvent(25081, 3, 'mob25081_Kill')
RegisterUnitEvent(25081, 4, 'mob25081_Die')
